﻿using System.Collections.Generic;
using System.Linq;
using Grenral.Entites;

namespace Grenral.Service.Category
{
    public class CategoryService:ICategoryService
    {

        private readonly GrenralDbContext _grenralDbContext;
        public CategoryService(GrenralDbContext grenralDbContext)
        {
            _grenralDbContext = grenralDbContext;;
        }

        public List<Entites.Category.Category> GetAllGCategories()
        {
           return _grenralDbContext.Categories.ToList();
        }
    }
}